package org.smoozik.app.common.partition;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import org.smoozik.services.musictheory.Figure;

public class PartitionMouseListener implements MouseListener,
		MouseMotionListener {
	PartitionPanel panel;

	public PartitionMouseListener(PartitionPanel panel) {
		this.panel = panel;
	}
	
	@Override
	public void mousePressed(MouseEvent e) {
		Figure figure = panel.getFigureForMouse(e);
		panel.updateKeyPressed(figure);
	}

	@Override
	public void mouseReleased(MouseEvent e) {
	}

	@Override
	public void mouseDragged(MouseEvent e) {
	}

	@Override
	public void mouseEntered(MouseEvent e) {
	}

	@Override
	public void mouseExited(MouseEvent e) {
	}

	@Override
	public void mouseMoved(MouseEvent e) {
	}

	@Override
	public void mouseClicked(MouseEvent e) {
	}

}
